#include "tv.h"

rc5 tv_storage[5];

void init_tv()
{
	for(int i = 0; i < 5; ++i) {
		tv_storage[i] = (rc5){100, 0, 0};
	}
}

void tv_add_signal(rc5 signal, int recv)
{
	if(recv < 0 || recv > 4) {
		return;
	}
	tv_storage[recv] = signal;
}
